Implemented function to reset pins when turning classification off.