How to start a program with a IR and light a LED to show it is running

I am trying to activate a servo 180 deg when motion is sensed on PIR. I have a program that I hacked together that works. I now need to activate the program and a led with a IR remote so I know it is active. If you can help me with the code I will bit coin you. Thanks…

Here is the code I wrote for the PIR servo.
#include <Servo.h>

Servo myservo; // create servo object to control a servo
const int sensorPin = 2; //PIR Sensor is attached to pin 2
int pos = 90; // variable to store the servo position

void setup() {
Serial.begin(9600);
pinMode(sensorPin, INPUT);
myservo.attach(9); // attach servo to pin 9
}

void loop() {
while ( digitalRead(sensorPin) == HIGH ) {
Serial.println( “HIGH-LEFT”);
pos++;
myservo.write(180); //tell servo to go to position in variable
delay(100); // waits 15ms for the servo to reach position
}
while ( digitalRead(sensorPin) == LOW ) {
Serial.println( “HIGH-RIGHT”);
pos–;
myservo.write(pos); //tell servo go to position in variable
delay(100); // waits 15 ms for dervo to reach max
}

the "bit-coining" keeps me away from answering.

Just trying to pay someone for their time. But the real answer is it is over your head.

But the real answer is it is over your head.

That is hardly the way to encourage people to help you

This post belongs in the "Gigs and Collaborations" forum

(deleted)

But the real answer is it is over your head

Are you a troll?

We don't get many of those on this technical forum.

(deleted)