Still not heating after replacing Magnetron

I replaced the magnetron and still doesn’t heat, so I tried popcorn mode just for kicks and it said sensor error on the panel, I looked up the diagram online and there are 2 sensors, a gas sensor and flame sensor any Ideas ?