In general....a carbon with single bonds is sp3,,,,,,with double bonds sp2,,,,,and triple bonds,,,,,,or two double bonds on a carbon as in CO2 will be sp. Exceptions exist.....be careful of resonance.......but this " trick " should help you.
Dr. Jim Romano