My Wifi-Shield wont connenct to the Internet?

Adding a New Device using MQTT have a look at step 4 and 5 for adding sensor and actuator. this will give an outline of how cayenne works.
for temperature code if you are using a DTH11/22 sensor DHT11/DHT22 - temperature and humidity sensor