improved data reading

made sensor initialization more robust
removed extra data printing
simplified readSensor method