An electronic device includes a detecting module, a processor module, a reminding module and a parameter module. The detecting module includes at least one detecting sensor installed on the electronic device, such that a user contacts the detecting sensor when operating the electronic device. The parameter module stores predetermined acceptable ranges of physiological parameters of users. The detecting module detects physiological parameters of the user operating the electronic device via the detecting sensor, the processor module compares the detected physiological parameters with the acceptable ranges and controls the reminding module to remind the user to relax when at least one physiological parameter is outside of the acceptable range.