Update Sensor.cpp

Fix syntax error missing } in Sensor::get to close do/while