I finally got this working!
I ended up using a Moda sensor from Tank-Edge https://tankedge.com/accessories.html. It was easier thank trying to make one and use touch sensor to try to figure it all out. This sensor takes 12volt in and outputs a signal that I measure through a voltage divider. The divider probably isn’t necessary, as I think the sense wire is less than 5 volts, but I figured better safe than sorry.
I used the ADC code as the base. Due to voltage fluctuations I added MovingAverage after linear to level out the readings.
To get calibration numbers, I had added in a new SK field to display the reading, making it easy to see my highs and lows. Commented it out when I was done.
My next idea is to try to figure out how to use MovingAverage to create a high and low readings averaged over long periods, add some simple math to adjust offset/scale and make the unit self-calibrating.
Question: When you choose “Reset Device” on the web interface of SensESP, does it reset the data also? In essence, would it reset the calibration averages to start from scratch? That would be very slick.
I ended up using a Moda sensor from Tank-Edge https://tankedge.com/accessories.html. It was easier thank trying to make one and use touch sensor to try to figure it all out. This sensor takes 12volt in and outputs a signal that I measure through a voltage divider. The divider probably isn’t necessary, as I think the sense wire is less than 5 volts, but I figured better safe than sorry.
I used the ADC code as the base. Due to voltage fluctuations I added MovingAverage after linear to level out the readings.
To get calibration numbers, I had added in a new SK field to display the reading, making it easy to see my highs and lows. Commented it out when I was done.
My next idea is to try to figure out how to use MovingAverage to create a high and low readings averaged over long periods, add some simple math to adjust offset/scale and make the unit self-calibrating.
Question: When you choose “Reset Device” on the web interface of SensESP, does it reset the data also? In essence, would it reset the calibration averages to start from scratch? That would be very slick.