fixed bug in get_sensor_state - was pulling the sensor as the index
Signed-off-by: Mike Day <ncmike@ncultra.org>