Hi,
In this tutorial, I have built a simple system that is powered with 1 W 5 V solar panel that monitors the connected battery voltage with ADC and gets the environment temperature and shares this information with the thing network over LoRaWAN. The system also supports modifying GPIO state wirelessly over LoRaWAN.
The system uses RYLR993 LoRaWAN Module and ESP32C2 as hosting MCU. The LoRaWAN module is controlled using AT commands over UART and contains an internal temperature sensor that the system makes use of.
Tutorial code is shared on my GitHub repository:
https://github.com/UsefulElectronics/esp32c2-rylr993-battery-voltage-lorawan
System Diagram:
Here is the diagram of the battery charging circuit with solar panel: