I can't make sense out of the fuzzy, too small photo.
Please post a hand drawn wiring diagram (not Fritzing), showing component values and how you have connected all the parts.
Also, it would help a great deal if you paid attention to the output from the print statements, before and after putting your hand over a sensor, and before and after removing the sensor.
The print statements are there to give you information about what the program is doing.
Finally, it looks like you used a pin number in the following statement because you earlier made a mistake typing the name "greenLEDPin". It is better to correct spelling errors when the compiler complains.
analogWrite(9, greenValue);