My setup looks like this
3.3->AREF
A0->Photo Resistor->GND
public class Program { public static void Main() { // write your code here InterruptPort tester = new InterruptPort(Pins.GPIO_PIN_A0, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth); tester.Dispose(); AnalogInput apin0 = new AnalogInput(Pins.GPIO_PIN_A0); apin0.SetRange(0, 100); int test = 0; while (true) { Thread.Sleep(250); test = apin0.Read(); Debug.Print("Test: " + test); } } }