fix sensors.cpp for LP