How to get hard?

Sometimes my boyfriend can't get hard. I mean he can but not as hard as usual. Ive heard that it could be stress. Or dehydration. So what should he do? Drink more water? Pelvic floor squats? Haha