Water your plants remotely using a Raspberry Pi, PiFace, and Ubidots
into your Raspberry Pi and set up the SPI module to communicate with the PiFace Digital:
sudo nano… Create a new file called "valve.py" and paste the following code into it:
sudo nano valve.py