Help with a code

OK so can you answer a few questions first

  • What Arduino platform are you using
  • What motion sensor are you using
  • What baud do you want the serial monitor to send data at

This is only a few lines of code once we have the required information.

Cheers Pete.