Why is the digitalWrite output low in voltage?

My million of apologies of didn't observed the following feeback earlier.

You need to set the pin as an output via pinMode():

Since you didn't do that you're just activating/deacivating the internal pull up resistor.

This now helps to get the trigger going on.