Wiring a stove top infinite switch
If your switch has the labels still on it, specifically H1, H2, L1, L2 and P, then you can use this:

Source: https://electronics.stackexchange.com/questions/21420/operation-of-infinite-switch