ecu troubles

I have a 1990 Honda Civic Station wagon in which I just did an LS swap into it. The trouble I'm having is the ecu is throwing code 4 which is crank postion sensor. Now I need to know how to get rid of this problem?