Skip to content

Commit

Permalink
Update bbn_m5atomS3_lite_TVOC_SGP30.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Oct 30, 2024
1 parent a03e774 commit 764d5f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bbn_m5atomS3_lite_TVOC_SGP30/bbn_m5atomS3_lite_TVOC_SGP30.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ void loop() {
// Commands the sensor to take a single eCO2/VOC measurement.
if (!sgp.IAQmeasure()) {
// Measurement failed
delay(4);
return;
}
gen_nmea0183_xdr("$BBXDR,X,%.0f,,TVOC", sgp.TVOC); // ppb
gen_nmea0183_xdr("$BBXDR,X,%.0f,,eCO2", sgp.eCO2); // ppm

if (! sgp.IAQmeasureRaw()) {
// Raw Measurement failed
delay(4);
return;
}
gen_nmea0183_xdr("$BBXDR,X,%.0f,,rawH2", sgp.rawH2);
Expand Down

0 comments on commit 764d5f3

Please sign in to comment.