A new vending machine in Brooklyn will dispense lifesaving harm-reduction supplies like naloxone to those in need.

The public vending machine, unveiled by the NYC Department of Health and Mental Hygiene on Monday, is the city’s latest attempt to reduce the number of overdoses, which spiked to record highs during the pandemic.

Located at 1676 Broadway in Brooklyn, the vending machine sits outside a supportive housing facility run by Services for the Underserved, which will oversee the machine.

The machines are completely free to use, health officials said. Individuals are only required to enter their New York City ZIP code, followed by the numerical code listed below the product.

The vending machines will also provide supplies for safe-sex kits and toiletries, according to the city.

According to city data, there were 2,668 overdose deaths in NYC, compared with 2,103 in 2020. The vast majority of those deaths involved opioids, the city said.

Mayor Eric Adams’ administration in March set a goal of reducing fatal overdose deaths by 15% by 2025.

“We are in the midst of an overdose crisis in our city, which is taking a fellow New Yorker from us every three hours and is a major cause of falling life expectancy in NYC,” Health Commissioner Dr. Ashwin Vasan said in a statement. “But we will continue to fight to keep our neighbors and loved ones alive with care, compassion and action. Public health vending machines are an innovative way to meet people where they are and to put life-saving tools like naloxone in their hands.”

Naloxone, sold under the brand name of Narcan, is a medication used to reverse or reduce the effects of opioids.

The city has plans to install at least three more public health vending machines in the next year.