SDP8XX - Differential pressure sensor

class pyserialsensors.devices.sdp8xx.SDP8(*args, **kwargs)[source]

Differential Pressure sensor SDP8 125Pa and 8500

crc_check(ba: bytearray)[source]
Parameters

ba – byte array with n*3 entries. Two data bytes are followed by one crc check.

Returns

list of booleans with len n indicating crc results

get_data()[source]
Returns

data dictionary

Return type

dict

get_serial_number()[source]

Reads unique serial number of sensor :return: [STRING] serial number of the sensor

prepare_measurement()[source]

Commands that have to be run prior to a measurement

reset()[source]

Reseting the sensor :return: True for successful reset else False

sensor_exists()[source]

Test if sensor is plugged in and works proper :return: [BOOLEAN] True if test was successful otherwise False