Connect scd41 to presto

The scd41 envoirment sensor is not in the list help(‘modules’) where can I find a working

Micropython file to load it on the Presto.

Thanks for any response.

Cheers

Jan

The SCD41 drivers should be built into the most recent Presto image, available at Releases · pimoroni/presto · GitHub

They seem to be showing up fine for me with help('modules')?

Looks like we don’t currently have a CO2 example for Presto, but you should be able to read data from the sensor by doing something like this:

import breakout_scd41
import machine
import time

breakout_scd41.init(machine.I2C())
breakout_scd41.start()

while True:
    if breakout_scd41.ready():
        co2, temperature, humidity = breakout_scd41.measure()
        print(co2, temperature, humidity)
        time.sleep(1.0)

Looks like there’s also a CO2 example in this PR that you could try :)

Thank for the reply, was helpfull.

Cheers

Jan