The Pi does not have analog inputs by default. However, by using an ADC you can read analog voltages. I've had good results with the
MCP3008 in the past (although I wouldn't recommend using Adafruit's tutorial code for it - use the Pi's actual SPI libraries; they should be more reliable)