Benadryl to sleep?

Ladies, help me out!

My mind has been racing every time I try and fall asleep about one thing or another (new baby, toddler antics, family drama, work stuff, etc etc).

I read on the internet it’s ok to take 25-50 mg of Benadryl while pregnant. I didn’t do it with baby #1 but didn’t feel the need to either. I haven’t seen my Dr yet (only 6 weeks) to ask.

I’ve been taking anywhere from 12-25 mg (half of one pill to one pill - not even full dosage) the past several nights so I can get some rest and it’s worked beautifully. Is this ok?