Explanation
When heated, lead nitrate decomposes into lead oxide, nitrogen dioxide, and oxygen, which are all toxic byproducts. Lead oxide, nitrogen dioxide, and oxygen are formed as a result of the decomposition of lead nitrate.
PbO, NO2, and O2 are formed when lead nitrate is heated strongly in a dry test tube (O2). Resultant lead oxide (PbO) and a reddish-brown gas known as nitrogen dioxide cause the yellow colour of lead nitrate.
The decomposition reaction that occurs when lead nitrate crystals are heated is an example of this. Nitric acid is a colourless gas of oxygen and a brown colour of nitrogen dioxide when heated to a certain temperature. The chemical equation for this reaction can be found here.
2Pb(NO₃)₂ → 2PbO + 4NO₂ + O₂