I'm guessing this is the Crank Position Sensor? Found it located on the front/port side of the block behind what I'm guessing is the Harmonic Balancer.
Also would a bad sensor cause a crank and hard to start scenario but still allow the engine to run fine and smooth once started?