Welcome to the forum
I started to look at your code and saw
int writeValueLed1 = "LOW";
An int holds a single integer value. It cannot hold a string of characters
I stopped looking at the code at that point
You need to learn basic C before undertaking any project