Basic logic of transfering data.

I dont know how to count them.For now only temperature and humidity.