when I tried to get the eggs from her she pecked me
But you didn't let that stop you, right?
Even my non-broody hens will do that, I persevere and go ahead and look anyway.
Most get used to it and don't really mind, tho they may halfheartedly peck and squawk a bit. Good to be able to check under broody if you're going to let her set.
These are my go to signs:
Is she on nest most the day and all night?
When you pull her out of nest and put her on the ground, does she flatten right back out into a fluffy screeching pancake?
Does she walk around making a low cluckcluckcluckcluckcluck(ticking bomb) sound on her way back to the nest?
If so, then she is probably broody and you'll have to decide how to manage it.
When I have a broody I wait until she's been in the nest most the day
and all night for 2-3 days...along with those other signs I posted.
Then I put her in the broody enclosure with fake eggs in the floor nest, she won't like being moved, but if she is
truly good and broody she will settle onto the new nest within a half a day.
Then I give her fresh fertile eggs and mark the calendar.
I like them separated by wire from the flock, it's just easier all around.
No having to mark eggs and remove any additions daily, no taking up a laying nest, no going back to the wrong nest after the daily constitutional.
Lots of good info here, it's long so just browse or post a new question:
https://www.backyardchickens.com/threads/broody-hen-thread.496101/