Examples of how to read out data from sensors connected with I2C, 1-wire and analogue.
Most relevant specs:
- Temperature -40°C to 85°C (±1.0°C accuracy)
- Humidity 0 to 100% RH (±3% accuracy)
- Pressure 300hPa to 1100hPa (±1hPa accuraccy)
- Altitude 0 to 30,000ft (±1 meter accuracy)
Most relevant specs:
- Communicates over one-wire bus communication
- Power supply range: 3.0V to 5.5V
- Operating temperature range: -55ºC to +125ºC
- Accuracy +/-0.5 ºC (between the range -10ºC to 85ºC)
The voltage outputtet by the sensor is converted by the software to the standardized UV Index scale that goes from zero to 15, like decribed on Wikipedia:
https://en.wikipedia.org/wiki/Ultraviolet_index
This sensor detects 280-390nm light most effectively. This is categorized as part of the UVB (burning rays) spectrum and most of the UVA (tanning rays) spectrum. It outputs a analog voltage that is linearly related to the measured UV intensity (mW/cm2).
https://de.aliexpress.com/item/32951556560.html?spm=a2g0s.9042311.0.0.27424c4dyGtgmo
Arduino sketch .ino file type in mixed C/C++.
Heltec WiFi Lora 32, TTGO etc.
The libraries used to compose this code might have different licenses.
Link for calculating possible resistor values:
For each analogue sensors can you in the code easily set the voltage range with the parameter VOLT_DIVIDER_x_VOLT_MAX, wherein x can be 1,2,3 or 4.
Link to program to read out addresses/IDs:
Link for further information on 1-wire:
Available at