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

Your description and blocks don't say much about the problem. Try to explain in more detail what the problem is. Maybe you can use TinyDb instead of a file?