Pulse sensor with timer?

Hey,
I have tried for weeks now, to make my project work but I think it is time to get some help. Thanks in advance.

Projekt:
I am trying to get a lamp to light up when my pulse sensor does not register any pulse.
The hard part is, that it must, as a minimum, record 10 pulse beats over 12 seconds. And if it does not register, as a minimum, 10 pulse beats over the 12 seconds the lamp must light up.

So far I have fund:

// Variables
int PulseSensorPurplePin = 0; // Pulse Sensor PURPLE WIRE connected to ANALOG PIN 0
int LED13 = 13; // The on-board Arduion LED

int Signal; // holds the incoming raw data. Signal value can range from 0-1024
int Threshold = 630; // Determine which Signal to "count as a beat", and which to ingore.

// The SetUp Function:
void setup() {
pinMode(LED13,OUTPUT); // pin that will blink to your heartbeat!
Serial.begin(9600); // Set's up Serial Communication at certain speed.

}

// The Main Loop Function
void loop() {

Signal = analogRead(PulseSensorPurplePin); // Read the PulseSensor's value.
// Assign this value to the "Signal" variable.

Serial.println(Signal); // Send the Signal value to Serial Plotter.

if(Signal >Threshold == LOW){ // If the signal is above "630", then "turn-on" Arduino's on-Board LED.
digitalWrite(LED13,HIGH);
} else {
digitalWrite(LED13,LOW); // Else, the sigal must be below "630", so "turn-off" this LED.
}

delay(10);

}

I think a timer would help but I find it difficult to understand the coding and I'm not sure if I will get the result I want.