Update sensors.cpp