Smart sensors for pest management