Measure concentration every 5 sec using Arduino
Show older comments
I have an Arduino setup with a gas sensor connected. Currently, I have programmed it to activate a buzzer when the gas concentration surpasses a threshold of 200 parts per million (ppm). However, I want the buzzer to sound continuously as long as the gas concentration remains above this threshold. Also, I'd like the Arduino to take readings from the sensor every five seconds instead of the default. How can I modify the code to achieve these requirements?
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Support Package for Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!