A man has been charged with filling a lube dispenser with hydrochloric acid at a gay and bisexual sex club in Sydney's west.

The 62-year-old man allegedly tampered with the dispenser fitted to the wall in a room at the Aarows club in Bridge Street, Rydalmere, on Saturday.

Items in the room had been fitted with sensor alarms because similar tampering had happened several times recently, police said.

"Police will allege an alarm sounded and security detained the man before police from Rosehill Local Area Command attended," police said.