Ok, I managed to deal with my second question, and added the millis() to my code for the DHT reading, but how to replace/change this two delays in the code bellow?
wait = 10
void fadeNeoPixel(uint32_t color, uint8_t wait)
{
for(uint8_t b = 0; b < 255; b++)
{
for(uint8_t i = 0; i < strip.numPixels(); i++)
{
strip.setPixelColor(i, color*b/255);
}
strip.show();
delay(wait);
}
for(uint8_t b = 255; b > 0; b--)
{
for(uint8_t i = 0; i < strip.numPixels(); i++)
{
strip.setPixelColor(i, color*b/255);
}
strip.show();
delay(wait);
}
}