Python Forum
Sensor reading changes with temperature. Looking for a good way to calibrate.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sensor reading changes with temperature. Looking for a good way to calibrate.
#1
Video 
Newbie here.

I currently have a gas sensor connected to a raspberry pi. The sensor reading, however, is affected by temperature. I'd like to account for the change in order to get a more accurate reading. The manufacturer of the gas sensor has a graph which shows the temperature-dependent variation : https://ibb.co/YNdrPqd. I have a DH22 temperature sensor, and at first thought of just using a case statement or a bunch of IF statements to do the calibration, but I was wondering if there isn't a better way of going about this?

The graph is non-linear which makes it a bit trickier. Thanks for your help.
Reply
#2
Not sure many people would click on a random link (I didn't)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020