Well you can at least try to compile it: you don't need the hardware for that.
Right now it doesn't compile: you have a typo in one of your variable names.....
Make life easier for everyone and use the # button above the
to put your code in tags
it looks like
And as I said earlier, if you use Serial, don't use pin 1. In fact don't use pin 1 any way.
Also bad practice to change your code in one post since then the comments after it make no sense to other readers. Right now my previous comment on "spin" now makes no sense since you changed the name to "sensorpin"