update sensor value comparison