bellahenkel / Soil-Sensing-Device

A Low-Cost Soil Sensing Project developed at Twin Cities Engineering, Minnesota State University, Mankato
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Update co2_sensor.cpp #14

Closed bellahenkel closed 11 months ago

bellahenkel commented 11 months ago

This is the updated CO2 sensor code. Updates include:

-I cleaned it up quite a bit and added some comments for readability.

-updated the formula used to convert the voltage drop from the sensor to ppm of CO2. It should be more accurate with this newer formula.

-CO2 data now saves to the SD card with timestamp.

bellahenkel commented 11 months ago

@aufdenkampe This is the most updated version of the CO2 sensor code. I just tested it quickly and it works as I would expect.

aufdenkampe commented 11 months ago

@bellahenkel, awesome! I'll take a close look and come up with a plan to refactor it into a stand-alone sub-package that we can #include and leverage in other code.