Arduino connect with android with wifi

I would like to make a very simple program to connect Arduino to my router and see temperature and humidity from my mobile anywhere in the cell would have to schedule an app that showed the values and could set the desired temperature and umedad, can anyone help? Do they have some similar code? Regards, and thank you very much