New York Laws
Title 1 - Fire Protection
54 - Kitchens and Pantries.

ยง 54. Kitchens and pantries. All kitchens and pantries serving
restaurants or dining rooms in a non-fireproof transient dwelling shall
be equipped with an automatic sprinkler system or a fire-detecting
system. Where such kitchens and pantries are located at least thirty
feet distant from such dwelling, no sprinkler or fire-detecting system
shall be required.