via phidgeteer on instructables
The code provided is fairly basic. Here are some things you will want to look into:
Securely sending emails. This was mentioned above.
Making your main loop smarter. You probably don’t want to send an alert every second if water is hitting your sensor. If an alert is sent, maybe wait an hour before sending another one? Or implement a reset button on your Pi (use a DigitalInput + button) that tells the program it is ready to send alerts again.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!
No comments:
Post a Comment