Connect D (pin 1) to +5V, S (pin 2) to 47 kOhm resistor to ground, and consequently G (pin 3 ) to ground GND.
Then connect S (pin 2) also to analog input pin of arduino. Take a reading using analogRead.
Connect D (pin 1) to +5V, S (pin 2) to 47 kOhm resistor to ground, and consequently G (pin 3 ) to ground GND.
Then connect S (pin 2) also to analog input pin of arduino. Take a reading using analogRead.