Changed the code to allow ignoring individual sensors.