-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQ-3 sensor and CH4 gas reading 'ovf' failure #75
Comments
Thank you for reporting this issue. It seems that the overflow might be caused by the extremely large value used for setA (2*10^31), which is likely exceeding the limits of the variable type. To resolve this, we suggest adjusting the variable types or using alternative mathematical operations that handle large numbers more efficiently. If you're able to make these changes and test them, it would be fantastic if you could contribute a merge request with the modifications. This would be a great enhancement to the library, and we appreciate your help in improving it! |
Describe the bug
I'm trying to read the CH4 gas concentration with a MQ-3 sensor using these values for 'setA' and 'setB':
Unfortunately, the library gives an 'ovf' as output. All other gas readings are working.
Additional context
I tested the library on with Arduino Uno R4 Wi-Fi microcontroller and 5V for VCC. The sensor is connected to A0 on the Arduino.
The text was updated successfully, but these errors were encountered: