Review Form

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Group and self-evaluation

Group number: 08 Date: 07/03/24


Your Name & Surname:

0% 20% 40% 60% 80% 100%


Did not Poor Below average Average Above average Excellent
contribute in Contribution contribution contribution contribution contribution
any way

Rest of Members evaluated


% Reasons why rating is given

85
 Works well and finishes tasks with care.
 Stays calm under pressure and helps keep
the team in good spirits.

95
 Works super hard and helps plan the
project well.
 Works smoothly with the team for a good
flow.

90
 Works a lot and leads the team in putting
things together.
 Takes responsibility for the project and
does a great job.

85  Tries hard when things get tough and


adds useful thoughts to the project.
 Stays positive and listens to suggestions
for getting better.
95  Does really good work and thinks of
creative solutions.
 Takes a lead role and helps guide the
team.

85  Tries to improve how the team works


together.
 Adapts quickly and always gives good
effort.

85  Gets work done on time and shares good


ideas during group talks.
 Understands tasks well and talks with the
team in a clear way.

3
#include <Wire.h>

// Define pin numbers for sensors and actuators

const int pirSensorPin = 2;

const int smokeDetectorPin = A0;

const int ledPin = 8;

const int buzzerPin = 9;

// Variables to store sensor readings

int pirSensorValue = 0;

int smokeDetectorValue = 0;
void setup() {

Serial.begin(9600);

pinMode(pirSensorPin, INPUT);

pinMode(smokeDetectorPin, INPUT);

pinMode(ledPin, OUTPUT);

pinMode(buzzerPin, OUTPUT);

void loop() {

// Read sensor values

pirSensorValue = digitalRead(pirSensorPin);

smokeDetectorValue = analogRead(smokeDetectorPin);

// Send sensor data to Raspberry Pi over serial

Serial.print("Motion:");

Serial.print(pirSensorValue);

Serial.print(",Smoke:");

Serial.println(smokeDetectorValue);

// Check for motion or fire and control local components

if (pirSensorValue == HIGH || smokeDetectorValue > 100) {

digitalWrite(ledPin, HIGH);

tone(buzzerPin, 1000); // Activate buzzer

} else {

digitalWrite(ledPin, LOW);

noTone(buzzerPin); // Deactivate buzzer


}

delay(1000); // Adjust delay based on your project requirements

You might also like