How to prevent arduino digital pins goes high on startup?

Hi guys,

I have done my project finally :slight_smile: , but i noticed that the arduino board on startup it's some digital pins goes high for a bit time 1 seconds or little more! and this causes problem in my project because i'm using it in starting dc motor.
I forgot to mention that i have 2 relays connected with arduino and they are triggered on arduino startup or with resetting it, then my code works perfectly.
I tried doing pull up resistor and pull down resistor but it seems same situation. Also tried (INPUT_PULLUP) and no result.

Any suggestion please?

Arduino board: UNO

Please close the topic.
Solved by reverse all output values of pins from HIGH to LOW because the relay works in "active low".

Best regards,
Mahdi