Machine only recognises emptying of the container when it is switched on. Try switching on the machine, removing the pulp container, waiting a few seconds and reinserting the container.
Sensor dirty. ...switch on, razs the grounds container, reach in with your hand, inside the front, reach up and clean the area with your finger / cloth. Try until it works.