I am not getting any of the numbers like before in the dashboard.
I just finished doing something similar, using ifttt. One thing I was surprised at was how slow ifttt was to respond to (minutes) sometimes. I wasnāt getting the instant response that I was hoping for.
Iāve used the wink api before with some success, on other projects. its possible that the web hooks could be used to command the wink hub directly. (Https is too tough for our poor sparks). If I get it working Iāll post the details.
Yes, it would. Reverse it and it will go the other way. I prefer to have the numbers go up as it gets lighter. Sun goes up it gets light, therefore, numbers should go up when it gets light. 
For me it just has to work with in 10 minutes or so.
Bendrix when I open the Dashboard I donāt get the numbers like I did before when I used usb and terminal on my computer. One column says data and sometimes I get a one or a zero.
Is there anything else that youāve changed, other than replacing the Serial.printl()? Did you change the resistor value? Also, what value are you using?
When using SSEs I have found that IFTTT reacts fairly quickly, within 20 seconds mostly. Using variables however is understandably slower since itās a polling process. That can take several minutes.
Here is the code I am using.
#define LDRPin A0
int reading;
void setup() {
pinMode(LDRPin, INPUT);
Serial.begin(9600);
delay(7500);
Serial.println("Well, hello there, I'm going to show you the LDR values");
}
void loop() {
reading = analogRead(LDRPin);
Spark.publish("LDR", String(reading));
delay(1000);
}
Personally, Iād first look at the voltage values into the Photon as the primary indication of the circuit function. If that looks good, then use Tinker to see if the Photon is able to read what the DVM showed was there. If all OK, write a bit of code on your own just for fun, and see the values displayed using the serial monitor but understand that the serial monitor is slooowwwww. Put a delay of at least a second between readings to be safe.
Here is a program that has two variables and one function. One of the variables is hooked to a circuit just like the one you are using. The other to a varistor (same circuit model). One function controls an LED.
int led0 = D0; // You'll need to wire an LED to this one to see it blink.
int led7 = D7; // This one is the built-in tiny one to the right of the USB jack
int ain0 = A0; // the light sensor
int ain1 = A1; // The temperature sensor
int A0val = 0;
int A1val = 0;
int tempF = 0;
int statusCode = 0;
String arguments;
// This routine runs only once upon reset
void setup() {
Spark.variable("Light", &A0val, INT);
Spark.variable("Temp", &A1val, INT);
Spark.function("lightLed0", lightLed0);
pinMode(led0, OUTPUT);
pinMode(led7, OUTPUT);
pinMode(ain0, INPUT);
pinMode(ain1, INPUT);
}
// This routine gets called repeatedly, like once every 5-15 milliseconds.
// Spark firmware interleaves background CPU activity associated with WiFi + Cloud activity with your code.
// Make sure none of your code delays or blocks for too long (like more than 5 seconds), or weird things can happen.
void loop() {
A0val = analogRead(ain0);
A1val = analogRead(ain1);
digitalWrite(led7, LOW);
delay(500); // Wait for 1000mS = 1 second
digitalWrite(led7, HIGH);
delay(500); // Wait for 1 second in off mode
}
int lightLed0(String args) {
if (args == "0") digitalWrite(led0, LOW);
if (args == "1") digitalWrite(led0, HIGH);
int statusCode = 1;
return statusCode;
}
// Here are the URLs to read variables, and call functions:
// Device ID = 123_Your_Device_ID_456
// Device name = YourCoreName
// Access Token = 1234_yourTokenNumber_5678
//
// Read the variable refered to above as "light"
// https://api.particle.io/v1/devices/YourCoreName/Light?access_token=1234_yourTokenNumber_5678
//
// Read the variable refered to above as "temp"
// https://api.particle.io/v1/devices/YourCoreName/Temp?access_token=1234_yourTokenNumber_5678
//
Here is an HTML page you can use to control digital bit connected to an LED. Just copy this code into a file using spark dev or some other code editor. Donāt use TextEdit or any text type editor or it will turn the quotes into something that wonāt process as JavaScript or HTML quotes. Save it as yourName.htm. Just click on it and run the buttons.
<html>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<body>
<P><br>Toggle Digital Output Pin 0<br><br></P>
<script type="text/javascript">
var deviceID = "54ff6d066678574942210267";
var accessToken = "9622b48a169ce6b1573484045ee513acd595fa36";
var setFunc = "lightLed0";
var newValue = "0";
function sparkSetLED(newValue) {
var requestURL = "https://api.spark.io/v1/devices/" +deviceID + "/" + setFunc + "/";
$.post( requestURL, { params: newValue, access_token: accessToken });
}
</script>
<button id="pushmeoff" onclick="sparkSetLED(0);">Push Me Off!</button>
<button id="pushmeon" onclick="sparkSetLED(1);">Push Me On!</button>
</body>
</html>
Thanks to @bko for giving me the browser page.
I know you are using IFTTT, but the above is just another way to have fun with the Photon and do something with light levels.
We've already established it's working, and have done exactly that in the posts above.
Although the suggestion to try out functions/variables with a webpage isn't bad, I'd highly advise against it until @rpiswag gets a better understanding of what's going on in the first place. The whole website/particle interaction can be quite daunting at a first glance, and trying to figure out how it's working without an understanding of the basics isn't going to help a lot.
Once you've got some basic projects working, you can try moving up a bit, making it increasingly more 'difficult'. For now, I'd stick to the basics.
@rpiswag, could you try doing particle subscribe mine in the particle CLI? Then wave a flashlight of your LDR, or cover it with your hand. Check if the values change.
Also, if you paste the Serial.println(reading); back in there (you can have both), then you could check the values over Serial AND over SSE to see if they match (which they should).
If you wouldn't mind trying that, we can see if everything works as expected, and we'll go from there ![]()
Also, what value of resistor are you using?
Yes, its a more complicated project. Perhaps @rpiswag will save the particle code and the html page for later. The only good thing about those two bits are they are on point for his app, and they have been fully tested to work 
I had this done but when I upgraded from Wink to Wink 2, all got messed up and I canāt make it work again. Has anyone done it successfully with the latest model?
Can you disable the 5GHz WiFi band on the Wink 2?