Some species are attracted to lots of moisture and rotting fruits and vegetables. Biting species can generally sense people through body heat and carbon dioxide.