Fix sensors.cpp for build.