i am making an app for school project for smart irrigation system using esp8266 but moisture value not showing in app and other things . these are my codes

i am making an app for school project for smart irrigation system using esp8266 but moisture value not showing in app and other things . these are my codes

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

Your Firebase data is under two separate branches in the database:
Your Firebase component sets its bucket to 'FinalESP', confining its access to just the first branch, which does not have the moisture.

I can't tell from your partial sketch listing why your sketch posts moisture in a different branch from the other data, so I can't offer a fix for that. It might be happening in lines 1-30 , which you did not post.
So to get around this, you might try:
For you to test:
P.S. Delete your duplicate posts from that other thread, we don't need that one any longer than it already is.
IT WAS SO HELPFUL THANK YOU, IT NOW DISPLAYS THE MOISTURE VALUE IN THE APP. is it possible for you to help me with the functionality of the app? now my problem is that the label for pump is not changing. it is just "pump is on" even if threshold exceeds and need to be "pump is off".
How is the app supposed to know that the pump is off?