Need help ASAP: MKR WAN 1300 not sending proper data to TTN


I have just tested the newly updated code where I removed some of the delay() functions, however I was still not able to fix my main issue. The decoded_payload still only contains ledState, while I am sending an int with the modem.write() function.