How exactly are you activating the lock and unlock?
To unlock you touch the inside of the door handle.
To lock you touch the raised area on top of the door handle.
If that's what you're doing, pay attention to where the fob is in relation to the door. If it's in your left pocket and you're facing forward I've had occasions where the fob was too far away from the sensor.