Lack of sleep can weaken the immune system, making individuals more susceptible to illnesses. Avoiding electronic devices before sleep can improve sleep quality, promoting a stronger immune system.