Toddlers and sleeping

Hi mommies! What is something that helps your toddlers go to sleep?

My two year old seems to be having trouble sleeping. Especially when his dad is around and we’re trying to be intimate he always ruins our moments. And it’s now affecting our relationship.

He sleeps in our room and for most part sleeps in bed with me because his dad isn’t around much because of his job he has to travel and go far. But since he’s been back he ruins every moment we have together especially at night he won’t go to sleep when he’s around but when he’s not around I don’t struggle much...

Help me!