Do not drive, use machinery, or do anything that needs alertness or clear vision until you can do it safely. Doxepin may cause a condition that affects the heart rhythm (QT prolongation). This risk may increase if you use certain drugs (such as diuretics/"water pills") or if you have conditions such as severe sweating, diarrhea, or vomiting. Avoid tanning booths and sunlamps.