code produced in arduino basic course by @giovannip