Measure sensor MHZ19B with Window Iot on Raspberry PI3

k 1 Reputation point
2021-05-07T20:47:04.047+00:00

Hello people,

how can I measure with the CO2 sensor "MHZ19B" on a Raspberry Pi3. I have created a UWP application that runs with Window Iot on my Pi.
The sensor is connected to GPIO 4.

Is there an API for the MHZ19B sensor?
I have already tried a lot, yet I can't come to a suitable solution.

Please help me.

Best regards
Lord Integer

Windows for IoT
Windows for IoT
A family of Microsoft operating systems designed for use in Internet of Things (IoT) devices.
381 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde 29,286 Reputation points MVP
    2021-05-08T10:51:28.083+00:00

    Hello @k ,

    I expect you already use the GPIO Nuget packages

    <PackageReference Include="System.Device.Gpio" Version="1.0.0" />    
    

    Check out the Device Bindings.

    There are many examples of other GPIO controlled sensors including sensors making use of SoftwareSerial.

    Here is an example of how to use the library.

    1 person found this answer helpful.
    0 comments No comments