Filament Sensor

My only issue is that the filament senor isn’t working and I don’t know how to look at the firmware (only have SteamDeck/Linux)

I fell asleep and I woke up to it still printing when the end was at the gear