Arduino Code to send voltage, current, power, and recieve downlink

Hi all,
I am in urgent need of an arduino code to send voltage, current and power values from my sensors connected to the node to the Chirpstack server which i installed on my gateway.
I have the voltage divider as the voltage sensor and the AC712 current sensor, and the power is gotten by multipling V by Current. I want to also turn on 2 LEDS on the nodes., I will apprciate any help i can get…


I’m closing this issue as you already asked the same question in Arduino code to send voltage and current value to chirpstack and recieve downlink to turn on and off LED.