Results 2 comments of MPNESTA

to check serial port you can use "isOpen()", serial.isOpen() try "sensor.ser.isOpen()"

I'm not an expert and I don't use this library but from the sensor documentation and this code, > sensor.sleep(sleep=True) is correct to read the status, but the function don't...