Hello all! Long time lingerer that finally found a need to ask a question. I am working on a project to put a temp/humidity sensor http://www.vaisala.com/Vaisala%20Documents/Brochures%20and%20Datasheets/HMP60-datasheet-B210851EN-C-LoRes.pdf into a fixed wing UAV for use in atmospheric research. We have the analog version of the sensor as well as a RS-484 connection with drivers installed to get serial data through a terminal. When hooked up in this mode the readings received are very accurate. (Img below)
When I hook up to the arduino, however, the accuracy seems to fall off. It also seems to move in a much less controlled incremental manner. It’s easy to see on the terminal that the temperature and humidity move .01 degrees at a time whereas the serial line outputs a much more sporadic pattern in arduino. I’m wondering if it’s my code (which I have posted below along with the serial monitor) or if I simply need better hardware to make more precise readings. This is my first foray into the realm of exacting readings so I’m not sure what’s needed. I think I’ve read something about ADC upgrades.
Anyway, forgive my ramblings and I appreciate any advice in advance. I just need to know if I need to continue to beat my head against a hardware wall, software wall or both!
Edit: The HMP-60 has an input voltage of 0-1.0V