The sensor has a fixed position in relation to rotation of crank. Irrelevant position of crank as when it rotates sensor will pick up tdc providing we have not moved the pickup point on crank( toothed disc in most cases with one missing etc)
It has no memory, so starting with a new engine would be the same as starting first-thing in the morning.
The crankshaft position sensor sends TIMED electrical impulses to the ignition coil/s to fire the spark plugs at the appropriate time.
I am soon going to be reinstalling an engine into a vehicle and I changed the crank position from where I had pulled it out from, do i need to take note of the position of the crank when I pull the engine? Or does the computer and ECU adjust and recalibrate for it? By the way it's a 1998 ford f-150 (5.4)