Irrigated agriculture is responsible for the consumption of 70% of all fresh water on the planet. There is, therefore, a necessity of using this scarce and of vital importance resource more rationally. Irrigated agriculture, as well as other activities in rural areas, needs to follow the technological advances. In the last decades, the electronic devices and the computers have got an increasing technological advance, becoming cheaper, precise and with a better user interface. The programmable logic controller is a quite spread use device, and may be used to control irrigation, to command solenoid valves, to switch on pumps, besides storing data; all this through external communication ports. The great advantage of using the programmable log...