を開けると

when ... opens

→ を
phrase Rare #26,246
when ... opens Used with an object marked by を to describe what happens when or as soon as someone opens it. The subject is often understood from context.
JA: 窓を開けると、涼しい風が入ってきた。
EN: When I opened the window, a cool breeze came in.

トムを開けると犬が走り出てきた

When Tom opened the door, a dog came running out.

のフタを開けると下水出られる

If you open the floor hatch, you can get out into the sewer.

— REC / レック (2007)

私がかごを開けるとすぐにカナリア飛び出した

As soon as I opened the cage, the canary flew out.

を開けるとヘン

You look funny when you open your mouth!

— かぐや姫の物語 (2013)