I had saved the wrong Arduino sketch. It is now fixed