Changed Arduino Uno to Pro mini and IR code doesnt work anymore

Hello
I’m trying to control some LED strips by clapping. (Basicly it sends the code for ON using a Ir diode to the led controller) Everything worked fine on a breadboard but now that i secured it onto some perfboard and changed the microcontroller from an arduino UNO to an arduino pro mini (5V 16MHz) The reciever doesnt recconise the code anymore, when i clap the IR diode turns on and sends some form of code (I checked via my phone camera). I’m really not sure what is causing this…
Heres the code (Its not entirely my code)
#define signalToRelayPin 13
#define sensorPin A3
#include <IRremote.h>
IRsend irsend;

int lastSoundValue;
int soundValue;
long lastNoiseTime = 0;
long currentNoiseTime = 0;
long lastLightChange = 0;
int relayStatus = HIGH;

void setup() {
pinMode(sensorPin, INPUT);
pinMode(signalToRelayPin, OUTPUT);
}

void loop() {
for (int i = 0; i < 3; i++) {
soundValue = digitalRead(sensorPin);
currentNoiseTime = millis();

if (soundValue == 1) { // if there is currently a noise

if (
(currentNoiseTime > lastNoiseTime + 200) && // to debounce a sound occurring in more than a loop cycle as a single noise
(lastSoundValue == 0) && // if it was silent before
(currentNoiseTime < lastNoiseTime + 800) && // if current clap is less than 0.8 seconds after the first clap
(currentNoiseTime > lastLightChange + 1000) // to avoid taking a third clap as part of a pattern
) {

relayStatus = !relayStatus;
irsend.sendNEC(0xFF02FD, 32);
delay(40);
lastLightChange = currentNoiseTime;
}

lastNoiseTime = currentNoiseTime;
}

lastSoundValue = soundValue;
}
}
If anyone could help me that would be awsome!

EDIT: I added a 100uf Capacitor between VCC and GND but that didnt solve it..

WELP figured it out on myself.
Apperently the voltage doesn't matter in the board setting under tools
So i selected 3.3v with a 8Mhz clock and it works!

RubenBuildsStuff:
WELP figured it out on myself.
Apperently the voltage doesn't matter in the board setting under tools
So i selected 3.3v with a 8Mhz clock and it works!

Indeed, but the clock frequency does. Your Mini is not an 16MHz but an 8MHz.

The markings on cheap chinese crap are terrible.