Photoautotrophs use sunlight as their energy source for making food, while chemoautotrophs use chemicals like hydrogen sulfide to produce energy.