The problem was that the Particle.publish didn’t want to publish a float. I had to change it to a integer.
But now my photon wont connect! I don’t know what’s going on. My computer recognizes it but just wont connect.
Define ‘connect’, Serial, wifi, something else? What’s the LED doing?
It doesn’t want to publish an int either.
Read the docs carefully.
It blinks green rapidly when I first turn it on. I put it into listening mode and run the particle serial Wi-Fi on my windows command prompt and try to connect. It says “Done! Your device should now restart.” But just blinks green again for about ten seconds and then goes back into listening mode.
This is what I did:
int Tempf = (int)DHT.getFahrenheit();
…
…
…
Particle.publish (“Tempature in F =” + Tempf, PUBLIC);
Nice, but did you also
?
Yes, but I made a guess and found an answer to it in YouTube
What about the connection issue?
That issue might well be caused by the wrong application of YouTube intell.
Particle.publish("Tempature in F =" + Tempf, PUBLIC);
Is not right AFAIK.
IMO this will be interpreted as (const char*)literal + offset pointing to some arbitrary location in memory. Not sure if YouTube may have addressed that interpretation.
Yeah I think you are right, as usual. I tried that code because I was curious as to how that would be interpreted. It actually did publish, but the event name was another string I had in my code, completely unrelated to "Tempature in F =" + Tempf
Yup, depending on the value of offset you may even reach that far into the memory that your “string” is not a string at all and may have a length of several KB and disallowed characters for an event name.
Everything is running good, except I am not receiving any events. 
How do you have your Particle.publish implemented now? Is it still the incorrect,
?
The Photon is still blinking green. I cannot figure out why. It will connect every once in a while but then when I flash something to it, but it never starts breathing cyan again.
How about posting your entire program, perhaps some tangibility could help forum member assist you in tracking down the culprit.
Its not the program that’s the problem, its the photon. It just wont connect.
well, have you loaded the “Bare Minimum” sketch to test that?
void setup(void)
{
}
void loop(void)
{
}
try that and see…
If maintaining a connection is still a problem, perhaps there is a WiFi issue (signal, overlapping SSID’s, etc.).
I cant flash anything because its not connected
And it connects sometimes, it just takes FOREVER.