To be able to interpret the different states of the soil as prompted by the soil sensor the microcontroller was programmed. The arduino integrated development environment (IDE) was used. The idea is based on C++ and thus can be extended using C++ libraries. Arduino programs (sketches) are cross platform, Simple, clear and at the same time flexible for advanced programmers