Added Not sensor_logic class