A system for automatic trapping and counting of flying insects is disclosed forthwith. The system lures flying insects into a main chamber where they are killed or stunned by a toxin. The killed and the stunned insects fall pass an optical sensor which counts the number of killed stunned insects. The number of killed and stunned insects is transmitted to a central monitoring station which can receive count data from multiple systems for automatic trapping and counting of flying insects spread around a monitored area. By analyzing the insect count from a number of systems for automatic trapping and counting of flying insects, the central monitoring station can initiate the spread of insecticides in real-time.