A microcontroller based distributed monitoring system using a petri-net approach