N.Y. Comp. Codes R. & Regs. tit. 12, § 14-2.2
(a) Boilers which require access to permit of proper care and inspection shall have a minimum clearance of 24 inches from the building walls or partitions.
Exception:
Boilers other than horizontal tubular or watertube type or not exceeding 30 inches in diameter may be set with a minimum clearance of not less than 16 inches from building walls or partitions in the clear.
(e) Where it is necessary to go on top of boiler or boilers for maintenance or operating purposes, a clearance of at least seven feet shall be maintained from the working platform to the underside of any overhead structure.
Exception:
Where boilers are to be installed in an existing building where it is necessary to go on top, there shall be a clearance of at least three feet. There shall be not less than six inches of clearance space above the highest point of any valve or other fitting when such valve or fitting is at maximum opening.
All boilers hereafter installed shall comply with the following requirements: