There is a known method for creating program code using the graph method. The program is represented by vertices (states) interconnected by directed arcs. Arcs contain transition conditions and ...
This article can be more of a guide on how to construct an heartbeat sensor utilizing an Arduino. Although a complicated one, this project comes as an interesting one to many electronics hobbyists.