Plug the Photoresistor in the extensions port to GND and to PIN19.
This code plays a permanent tone, which get as higher as less light is hitting the photoresistor.
int light; // variable for the senor value
// enable pull up resistor for analog in
light = analogRead(5);