Photoautotrophs converts carbon into sugars using the energy from the sunlight.
Chemoautotrophs make their own food by converting carbon into sugars using the energy from inorganic molecules. These type of organisms usually exist where there is no sunlight like the deep sea vents.
Hope this helps!