(d)to enter into any building or on any land for the purpose of ascertaining whether any building is being or has been erected or re-erected without sanction or in contravention of any sanction given by the committee or Executive Officer of any bye-laws made under Section 202 or of any scheme sanctioned under Section 203 and to take such measurements and do any other such acts as may be necessary for such purpose.