Suffolk County officials say one of the machines, offering pipes for $2.00, was on Middle Country Road in front of the Coram Commons shopping center.
The town of Coram had received complaints from residents about the vending machine on Sunday. A town official went to the machine, which dispensed one of the pipes.
Police held a news conference on Monday to say two other machines were also found. One was found in front of the Home Depot in Coram and another was found on a road in Medford.
The dispensers had the word “pens” displayed on the top of them. The ceramic pipe the machines dispensed also came with a filter to hold the crack. All of the machines have been removed and police continue to investigate.