Sensors and liblights fixes