remove dead code; pass thread delay parameter into poll ftn.
code for printSensorsValues flag