Updates to reading of sensor data

need to figure out bit flagging