transit
home-automation
raspberry-pi
lifx
sensor
gtfs
air-quality
smart-home
home-assistant
homekit
zwave
home-assistant-config
control-lights
limitlessled
flic
weather-report
climate-control
hassio
nanoleaf-aurora-lights
-
Updated
Oct 18, 2021 - Python


Hello!
I use the same UART channel to read data from sensor (via RX pin of controller) and send debug messages (via TX pin). So there is no connection between controller's TX pin and sensor's RX pin.
In my case PMS5003 sensor works fine without sending any command to it.
Your library sends "passive mode" command in 'init' and 'trigRead' methods:
uart->write(cfg, msgLen); // set passive mode