Sometimes we feel we can take a short cut when no one is looking. It's like cheating. A cheater does not want to get caught. So, he does his act in secret. That's the essence of people who lead a double life. It's a life of tension. There is a way out. Do right even when no one is looking.
Charity given in secret has more virtue than when given publicly. It's like the left hand not knowing what good deed the right hand has done. A virtue done in secret multiplies the blessing on the doer. Do right even when no one is looking.
To do right should be based on your habit. It should not come out of fear. When that happens, you will not think when to do right, you will be doing it in its natural course. Do right even when no one is looking.