Indeed.
However, the code is useless without knowing what hardware is connected to it, and how.
Therefore a schematic diagram (aka "circuit diagram") is also required.
And full details of the actual sensors you are using - please give a link.
See: 'How to get the best out of this forum' - in particular, ' Posting code and common code problems' and ' Schematics or circuit diagrams'
Some free online tools for creating schematic (and other) diagrams: