Check the pins to make sure you have them set up as digital and not analog inputs.