Use 2 sensors to define a variable

I’m not sure how to do this, hence my question.
I have 2 open/closed sensors in my parcel mailbox
sensor.pakket_bezorgd_sensor and sensor.pakket_gepakt_sensor

When a parcel is delivered, the first sensor is triggered
When I open the parcel mailbox to empty it, the second sensor is triggered.

I want HA to show if there is still a package in the mailbox
So the variable should show package present when first sensor is triggered
And variable should show no package when second sensor is triggered.

Any suggestions?

A trigger based template sensor comes to mind, or an input boolean with automations to turn it on or off.

Something like this put in templates.yaml (untested)

- trigger:
    - trigger: state
      entity_id: binary_sensor.pakket_bezorgd_sensor
      from: "off"
      to: "on"
      id: "on"
   - trigger: state
      entity_id: binary_sensor.pakket_gepakt_sensor
      from: "off"
      to: "on"
      id: "off"
  binary_sensor:
    - name: "Pakket aanwezig"
      state: "{{ trigger.id }}"

Will try, many thanks