DHT11 temperature and humidity sensor

endermaker:
What can I do about this?

do you have another sensor laying around? did you double check your wires?

No I dont have another sensor and I bypassed the bread board and tried with lots of different wires

endermaker:
No I dont have another sensor and I bypassed the bread board and tried with lots of different wires

Hmm im not sure then i think the code is right. you absolutely have to use the resistor. i have ruined a few dht sensors myself

edit: the code works i just tested it. Also that true/false in temp might not do the same thing it does in dht11 as dht22. but it can be there

Which Arduino?

You had better to use the DHT sensor library by Adafruit. See the complete guide about DHT11 sensor with Arduino