Sketch not wok properly on Digispark Attiny85 but work on Arduino board

hi i try to make this code work

its work as finish line to determine which is pass trough first between 2 lanes

everything is work normal and nice at any arduino board that i have like, uno, nano, pro mini, but when i want to change the board to digispark attiny85 which just have 6 i/o pins, i 've got a problem where the second signal input not recognized (in my case is the ir receiver )

for further information i use this sketch

// This is the arduino sketch: Open the arduino IDE,
// create a new file and copy/paste the following code into it.
// Don't forget to upload the code to your arduino!

/*
* Finish Line Detector
*
* Lights up LED 1 or 2 depending on which sensor is tripped first
* Both LEDs light up in the case of a tie
*
* Accuracy:
* As there are only a few lines of code in the loop
* (actually more instructions after it gets compiled) and considering
* that the arduino runs at 16Mhz (million cycles per second),
* we have an accuracy much better than a millisecond.
* With an oscilloscope, I determined that the code actually takes about
* 20 microseconds to execute. Should be good enough.
*
* Author: Ted Meyers - February 2, 2011
*/

const int ledPin1 = 0;
const int ledPin2 = 1;
const int sensorPin1 = 2;
const int sensorPin2 = 3;

const int TIMEOUT = 1000; // milliseconds

// Setup runs once, at start
// Input and Output pins are set
void setup(){
   pinMode(sensorPin1, INPUT);
   pinMode(sensorPin2, INPUT);
   pinMode(ledPin1, OUTPUT);
   pinMode(ledPin2, OUTPUT);
  
}

// Called repeatedly
void loop() {
 
   // Get the Sensor status
   int status1 = digitalRead(sensorPin1);
   int status2 = digitalRead(sensorPin2);

   // Set the output LED to match the sensor
   digitalWrite(ledPin1, status1);
   digitalWrite(ledPin2, status2);

   if (status1 == HIGH || status2 == HIGH) {
      // A sensor was tripped, show the results until timeout
      delay(TIMEOUT); // Wait for timeout
   }
}

i already try different pins but the result is same,the sensor not work on the other one, am i need to adjust the sketch?

my board is kinda look like this

any help would appreciated!

any help would appreciated!

Start with posting code that will actually compile.

i 've got a problem where the second signal input not recognized (in my case is the ir receiver )

Typically, IR data is modulated. You don't just digitalRead() the state of a pin one time to get IR data.

Does that SAME code, with pin number adjustments, work on the other boards?

PaulS:
Start with posting code that will actually compile.
Typically, IR data is modulated. You don't just digitalRead() the state of a pin one time to get IR data.

Does that SAME code, with pin number adjustments, work on the other boards?

yes the same code works normal as it should, im sorry i didnt copy the sketch carefully here it is

//* 20 microseconds to execute. Should be good enough.
//*
//* Author: Ted Meyers - February 2, 2011
//*/

const int ledPin1 = 0;
const int ledPin2 = 1;
const int sensorPin1 = 2;
const int sensorPin2 = 3;

const int TIMEOUT = 1000; // milliseconds

// Setup runs once, at start
// Input and Output pins are set
void setup(){
   pinMode(sensorPin1, INPUT);
   pinMode(sensorPin2, INPUT);
   pinMode(ledPin1, OUTPUT);
   pinMode(ledPin2, OUTPUT);
  
}

// Called repeatedly
void loop() {
 
   // Get the Sensor status
   int status1 = digitalRead(sensorPin1);
   int status2 = digitalRead(sensorPin2);

   // Set the output LED to match the sensor
   digitalWrite(ledPin1, status1);
   digitalWrite(ledPin2, status2);

   if (status1 == HIGH || status2 == HIGH) {
      // A sensor was tripped, show the results until timeout
      delay(TIMEOUT); // Wait for timeout
   }
}