Smart sensors for pest control