Added pin toggle for debugging and example sketch