Ran out of digital ports making use of analog port

Hi,

Now i am building a line follower, I am using a qtr-8 sensor array plus an ardumoto shield to control dc motors. Problem is for the sensors i need 8 digital pins(digital pins 2-9) and ardumoto uses 4 ports (digital pins 10-13).

Right now I am only using 6 out of 8 sensors to save two digital pins to use a button and a led. My question is is it possible to use analog pins to connect a button or an led?

yes

do i threat it just like a digital pin? do i need to know anything speacial?

The analog pins can act as digital pins. You just call them as pins 14-19. Analog pin 0 being 14 and analog pin 5 being 19.