Interfacing an Analog Sensor

Hey guys, please help me to get values from an FSR in a while loop and convert the value to digital form, for instance to write into an LED brightness value.

See This, It Might Help
Try matching the exact layout of wires on bolt. You can even get help from the code written for arduino.

Image Courtesy : Instructables