A mouthpiece device for the use with the treatment of obstructive sleep apnea syndrome includes at least one main air channel provided at the outlet of the mouth, at least one side air channel provided at the outlet of mouth, at least one one way valve placed inside the main air channel, at least one protective plane arranged between the inner part of the lips and the outer surface of the teeth, at least one palate chamber extending inside the mouth, at least one tongue chamber placed inside the palate chamber, at least one vent provided on the tongue chamber, at least one sensor for measuring the carbon dioxide and oxygen levels in the air exhaled by the patient, at least one palate extension extending from the palate chamber towards the soft palate, and electrically stimulates the palate when the sensor detects that the patient stops breathing.