を開けると

when ... opens

→ を
phrase Rare #33,253
when ... opens Follows the thing being opened; と introduces what happens when or after it is opened.
JA: ドアを開けると、猫が外に出た。
EN: When I opened the door, the cat went outside.

口を開けるとヘンよ!

You look funny when you open your mouth!

— かぐや姫の物語 (2013)

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

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

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

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