Source code to automation based in Arduino