Please note that this is definitely not a "state of the art" sketch but it works and can be a possible source of information for you. To reduce further power draining components I wanted to remove the ...
Arduino CLI is an all-in-one solution that provides Boards/Library Managers, sketch builder, board detection, uploader, and many other tools needed to use any Arduino compatible board and platform ...