No, the housings are not the same.
On the electric version, the sender points directly at the shaft, and on the mechcanical version, the sender is below the shaft so the gears can mesh.


I.I. #3174