fixes for the sensor api to get the relay board working