Need help using tcrt5000 sensor

Using IR sensor (TCRT 5000) with Arduino and program to remove noise - YouTube

I want to follow this exact video however I have the the tcrt5000 module,present in this photo
tcrt5000 - Google Search

my question is how can he turn off the led ( how did he know its pin 6) and also how can he plot multiple graphs with different colors

Did you read the instructable? https://www.instructables.com/Using-IR-Sensor-TCRT-5000-With-Arduino-and-Program/

He wired the sensor to pin 6 so that is what he used in his code.