fixed printSensor