minor changes to sensors.cpp