N.Y. Real Property Actions & Proceedings Law § 1307
2. Such plaintiff shall have the right to peaceably enter upon such property, or to cause others to peaceably enter upon the property for the limited purpose of inspections, repairs and maintenance as required by this section, or as otherwise ordered by court; provided, however, that if the property is occupied by a tenant, at least seven days notice must be given to such tenant, unless emergency repairs are required in which case reasonable notice shall be provided to the tenant.
(iii) The plaintiff receives a complaint from a tenant in lawful occupancy of the residential property indicating that the owner of the residential property has ceased maintaining the property and: