Indoor plants can add new life to a space, increase oxygen in a space which can lead to more productivity and are an inspiration to all, but because of the work that is often required they are replaced with fake plastic plants which are not only unnatural and get thrown in landfills at some point of their life, but they do not offer as many of the benefits that real plants do. Plants are often viewed by younger generation similar to getting a pet because of the responsibilities that come with them, and although plants may make the best roomies they are often go forgotten my project I am going to build a flower pot that is home to a moisture sensor that sends you text updates when you need to water your plants. This will save the lives of plants and allow for more people to grow food at home.
So it reads data from the moisture sensor and in Wi-Fi send that data to the internet where it can be viewed/where it is published. The cloud is losant, and it will do everything needed to send a text. If the data come in reading that the moisture is two low then it will send a text say that the use needs to water their plants.
Create losant account- In losant create an application.
- create blank device with device attribute with the type
Numberand the namemoisture
- copy and save the device id you will need it in your code.
- next create an access key and access secret (losant needs this to connect your device to the cloud).
- copy and save the device id you will need it in your code.
In the code you will need to change:
- WIFI_SSID = your WiFi network
- WIFI_PASS = your WiFi password
- LOSANT_DEVICE_ID = device id you saved before
- LOSANT_ACCESS_KEY = access key you saved before
- LOSANT_ACCESS_SECRET = access secret you saved before
On Github you can find a prebuilt workflow. Create a new workflow and import the workflow file
Change the device settings for the device commands and the global variable.
badLevel and goodLevel values will be dependent on your specific plant and soil type. For my indoor plants, a badLevel of 350 and a goodLevel of 450 generally work well.
















_3u05Tpwasz.png?auto=compress%2Cformat&w=40&h=40&fit=fillmax&bg=fff&dpr=2)
Comments