File component issue (Using Bluetooth, TinyDB to control a Plant watering system)

So I think I have finished the Bluetooth "Connect", Disconnect", File "Save ", "Get" portions of this App All that's left is the "Start Timer". Here is what I have for the "TimerScreen" and "File" Code.

All I need to do now is to create a simple loop that takes the info from the text box, start the clock, turn on the relay, create a loop that counts down that text box data, Disables the clock, turns off the relay, and repeats this procedure for all 14 text boxes in sequence. Sounds simple enough. I have this code but it's not working as expected. Just to turn on relay one time for the first text box.

Nope not that easy. Can you give me an idea why. I worked on this little piece of code all weekend.

Thanks