attiny85 gas sensor

Hello everyone, I’m new in this community and I need your help.

I made gas sensor with attiny85, 3v buzzer (BeStar BPT-24CXLF), and an FC-22 gas sensor module with MQ-4 sensor.
my problem is that sound from buzzer is very low, I can’t hear the it from another room.
I replaced attiny85 with arduino nano and in that case buzzer sounds really loud.

This is the code on the attiny85:
int sensorPin = A1;
int sensorValue = 0;
int buzzer = 2;
void setup() {
pinMode(sensorPin, INPUT);
void loop() {
sensorValue = analogRead(sensorPin);
if (sensorValue>250)
** digitalWrite(buzzer, HIGH); **
** //delay(100); **
** //digitalWrite(buzzer, LOW); **
** //delay(100); **
** }else**
** {**
** digitalWrite(buzzer, LOW);**
** }**

gas sensor module VCC to attiny85’s pin8,
gas sensor module GRND to attiny85’s pin4,
gas sensor module AO to attiny85’s pin7, (I believe AO stands for analog output)
buzzer(+) to attiny85’s pin2,
buzzer(-) to attiny85’s pin4,
5v(+) to attiny85’s pin8,
5v(-) to attiny85’s pin4.

Please help me to understand why the sound of the buzzer is so low and how to make it sound louder?

Thanks in advance.


thank you! could you advise me transistor and it's wiring?


:smiley: thank you :smiley: