に入ると

when entering

→ に
phrase Uncommon #16,714
when entering Used to describe what happens when someone enters a place. The person entering is usually indicated before に, as in 部屋に入ると (when someone enters the room).
JA: 先生が教室に入ると、学生たちは静かになった。
EN: When the teacher entered the classroom, the students became quiet.

ベッドに入るとすぐ彼は眠り込んだ

As soon as he got into bed, he fell fast asleep.

なんで汗がに入ると痛いの

Why does it hurt when sweat gets in your eyes?

彼女は教会に入るとひざまずいた

When she entered the church, she knelt down.

に入るとを見失ってしまった

When I entered the town, I lost sight of the tower.