いるのに気づいた

noticed that … was …

→ 居る
phrase Uncommon #14,901
noticed that … was … Used after a verb in ている form to say that someone noticed an ongoing action or resulting state.
JA: 彼がドアの前で待っているのに気づいた。
EN: I noticed that he was waiting in front of the door.

その頃になって、右手の指に血がついているのに気づいた。

That’s when I noticed there was blood on the fingers of my right hand.

私は彼が壁にもたれて座っているのに気づいた。

I noticed him sitting against the wall.

私は彼女が新しい帽子をかぶっているのに気づいた。

I noticed that she was wearing a new hat.

小さい灰色の動物がこちらを見ているのに気づいた。

I noticed a small gray animal looking at me.

私は奇妙な物体が道路に落ちているのに気づいた。

I noticed a strange object lying in the road.

正気に戻ると、自分が床に寝ているのに気づいた。

When I came to, I realized I was lying on the floor.

私は彼が少し離れたところで私をじっと見ているのに気づいた。

I noticed him staring at me from a short distance away.

彼は彼女が当惑しているのに気づいた。

He noticed that she was confused.