部屋に入ると

when (someone) enters the room

→ 部屋
phrase Rare #25,015
when (someone) enters the room The subject is often understood from context. と marks what happens when the action occurs.
JA: 部屋に入ると、猫が窓辺にいました。
EN: When I entered the room, the cat was by the window.

私が部屋に入ると彼らは拍手した。

They applauded when I entered the room.

私が彼の部屋に入ると、彼は本を読んでいた。

When I entered his room, he was reading a book.

私たちが部屋に入ると、彼は立ち上がった。

When we entered the room, he stood up.

その部屋に入ると、彼女がピアノを弾いていた。

When I entered the room, she was playing the piano.

部屋に入ると私達は再び話を始めた。

When we entered the room, we started talking again.