You are on page 1of 2

Class Performance 1 (10 marks)

202_426_A

How to submit
Re-write the code in the CW folder to
answer the questions in the following
page.

In a SINGLE video, you have to


explain your modifications and show
that the circuit is running as
expected.

Length of the video cannot be more


than 5 mins.
Questions
Q1: Re-write the code for
temperature sensor so that when you
simulate, both the sensor and the
serial monitor show the same
temperature.

Q2: If you have a motion sensor


installed in an open room, it might
wrongfully sense the motion of object
caused by wind flow. Re-write the
code as you wish so that it can
differentiate between ‘intermittent’
and ‘continuous’ motion.

You might also like