Possibility of manual switching of operating modes, as well as automatically (with implemented control from the script via pin18)