Right-click your equipped Pipe and select "Puff". Each Puff has a CHANCE to reduce your Madness by 1 level. The higher your Madness level and the higher the tier of Tobacco used the higher the chance of dropping a Madness level. Each Puff adds wear to your Pipe.