Section 105(b) in The U.P. Panchayat Raj Act, 1947
(b)except when it is in this Act or in rules, or bye-laws otherwise expressly provided, no building which is used as a human dwelling shall be so entered except with the consent of the occupier thereof, and without giving the said occupier not less than four hours previous written notice of the intention to make such entry, and