agners / micropython-scd30

MicroPython I2C driver for SCD30 CO2 sensor module
MIT License
24 stars 15 forks source link

Update README.md #6

Open wil-liammacleod opened 1 year ago

wil-liammacleod commented 1 year ago

Just had to do some troubleshooting to determine why the while scd30.get_status_ready() != 1: was looping infinity in the example code. I determined that my SCD30 sensor came in a non continous measurement state. After adding the line scd30.start_continous_measurement() it started working.

I think this edit would be best or maybe a sentence noting this command as an initialization step in the readme.