Added sampling of the hardware pins with a simple attempt at software
debouncing.