I have used them for digital with out an amp.

Anode at 5VDC
Cathode to PIC pin with a 10 meg pull up resistor.

Have not used one for analog though.