The present invention relates to an apparatus and a method for measuring muscular activity, in particular in relation to bruxism, and providing an electrical stimulation in response to the measured muscular activity through electrodes applied to the skin of an individual, wherein the quality of the connectivity of the electrodes to the skin is monitored and the electrical stimulation signal is changed based on said quality measurement.