Refactor print/clear of sensor/timer