def tdSensorValue(self, protocol, model, sid, datatype):
value = create_string_buffer(<NUM_LIT:20>)<EOL>timestamp = c_int()<EOL>self._lib.tdSensorValue(protocol, model, sid, datatype,<EOL>value, sizeof(value), byref(timestamp))<EOL>return {'<STR_LIT:value>': self._to_str(value), '<STR_LIT>': timestamp.value}<EOL>
Get the sensor value for a given sensor.

        :return: a dict with the keys: value, timestamp.