How can I, with only resistors and capacitors (all I have at my disposal out in the field, plus some wire and 3.7V Li-Poly batteries), get this to work properly?
float voltageValue,dbValue;
voltageValue = analogRead(pinSEN0232) / 1024.0 * VREF; // VREF = 5V as per the product Wiki
dbValue = voltageValue * 50.0;
Works well near a runway/taxiway with a 5V microcontroller, but I must use the ESP8266 augmented device (ESP32 devices never reliably reconnect, but that's a different issue).
It's an ESP8266 device with a single ADC, and it's about "translating" 0.6 - 2.6V (from an analogue sensor output) to 0 - 1V (of the ESP8266 device) as I described above.
All right, a voltage divider with 330 Ohm and 220 Ohm (all I had) does it sort of well, not as accurate as it should be, if I had more resistors with me, but acceptable for now.
A 550 ohm load might be a problem for the sensor (minimum value not listed).
Other WiFi boards, like the WeMos D1 mini and NodeMCU, use a 100k:220k divider (for ~3.2volt).
Leo..