How to fix my iphone home button and screen sensor?

Yesterday i accidentaly spilled water over my iphone 5s and the home button stopped working. The touchscreen is ok but when i rotate my phone, the image doesn't rotate. I guess some kind of sensor is bugged too. Can i fix it on my own or do i need to give it to a technician?

How does the iPhone health app work?

How is it able to calculate how many steps you took and how many stairs you climbed?

's pretty amazing and IIm currently obsessed with it haha.