A sensor for detecting urine and stool secretion mounted over two or more layers of garment, said sensor comprising: at least one light source configured to illuminate said garment; at least one photodetector configured to output an indication of the amount of light reflected from said garment; and an electronic circuit configured to detect said secretion by monitoring said output of said photodetector and identifying a temporal pattern being characteristic of said secretion event.