An irrigation control system based on a Raspberry PI