# DFRobot SEN0395 mmwave no output

**URL:** <https://forum.arduino.cc/t/dfrobot-sen0395-mmwave-no-output/1267681>\
**Category:** General Guidance\
**Created:** [June 4, 2024, 3:46am UTC](https://forum.arduino.cc/t/dfrobot-sen0395-mmwave-no-output/1267681 "2024-06-04T03:46:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ridwananhar](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ridwananhar](https://forum.arduino.cc/u/ridwananhar)\
**Post date:** [June 4, 2024, 3:46am UTC](https://forum.arduino.cc/t/dfrobot-sen0395-mmwave-no-output/1267681/1 "2024-06-04T03:46:36Z")

</div>

So i'm making a human presence detection using the DFRobot SEN0395 sensor with the Arduino Pro Micro. I'm using the included Example program on the "DFRobot\_mmwave\_Radar.h"

```arduino
#include <SoftwareSerial.h>

#include "DFRobot_mmWave_Radar.h"

SoftwareSerial mySerial(3, 2); //RX,TX
DFRobot_mmWave_Radar sensor(&mySerial);

int ledPin = 13;

void setup()
{
  Serial.begin(9600);
  mySerial.begin(115200);
  pinMode(ledPin, OUTPUT);
  
  sensor.factoryReset(); //Restore to the factory settings 
  sensor.DetRangeCfg(0, 9); //The detection range is as far as 9m
  sensor.OutputLatency(0, 0);
}

void loop()
{
  int val = sensor.readPresenceDetection();
  digitalWrite(ledPin, val);
  Serial.println(val);

}

```

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/a/3/c/a3c42bf4847f7c4ca5fc602b3def0f648e355f48.png)

I followed the wiring on the DFRobot wiki but there're no Outputs on the serial monitor, just blank.

Is something wrong?

---

<div class="post-metadata">

**Author:** ![ridwananhar](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ridwananhar](https://forum.arduino.cc/u/ridwananhar)\
**Post date:** [June 4, 2024, 4:20am UTC](https://forum.arduino.cc/t/dfrobot-sen0395-mmwave-no-output/1267681/2 "2024-06-04T04:20:10Z")

</div>

When i tried it on an UNO there're outputs but they were Janky and kinda broken cause i faced the sensor to the other side the data keep reading it was high even though there is no one.

 ![SEN0395_1](https://europe1.discourse-cdn.com/arduino/original/4X/3/a/6/3a622bb7775f42b36c1f14ff22ece6cdac477159.png)

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [June 4, 2024, 6:36am UTC](https://forum.arduino.cc/t/dfrobot-sen0395-mmwave-no-output/1267681/3 "2024-06-04T06:36:48Z")

</div>

Serial does not work at 115200 on an UNO. Try 9600 baud.  
Check sensor datasheet for its baudrate.

---

<div class="post-metadata">

**Author:** ![blh64](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/blh64/32/605986_2.png) [@blh64](https://forum.arduino.cc/u/blh64)\
**Post date:** [June 4, 2024, 2:44pm UTC](https://forum.arduino.cc/t/dfrobot-sen0395-mmwave-no-output/1267681/4 "2024-06-04T14:44:37Z")

</div>

> [@Railroader](#):
>
> Serial does not work at 115200

To be precise, SoftwareSerial does not work at that baud rate. The hardware serial port can operate much faster than that.

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [June 4, 2024, 3:44pm UTC](https://forum.arduino.cc/t/dfrobot-sen0395-mmwave-no-output/1267681/5 "2024-06-04T15:44:14Z")

</div>

Correct. I nailed 115200 but missed Software...

---

<div class="post-metadata">

**Author:** ![ridwananhar](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ridwananhar](https://forum.arduino.cc/u/ridwananhar)\
**Post date:** [June 5, 2024, 3:47am UTC](https://forum.arduino.cc/t/dfrobot-sen0395-mmwave-no-output/1267681/6 "2024-06-05T03:47:38Z")

</div>

i dont think it's the baud rate problem. According to the Wiki the default baud rate is 115200 and when i change it, it won't work. I'm trying another Library with much simpler way to use.

> **[GitHub - MaffooClock/DFR\_Radar: Arduino library for working with the DFRobot...](https://github.com/MaffooClock/DFR_Radar)**
>
> Arduino library for working with the DFRobot 24GHz millimeter-wave Human Presence Detection sensor (SEN0395). - MaffooClock/DFR\_Radar

```arduino
#include <DFR_Radar.h>

// Serial1 is the hardware UART pins
DFR_Radar sensor( &Serial1 );

void setup()
{
  Serial.begin( 9600 );
  
  // The DFRobot device is factory-set for 115200 baud
  Serial1.begin( 115200 );
  
  // Restore to the factory settings -- it's not necessary to do this unless needed
  sensor.factoryReset();

  // Set a detection range of 0 to 1 meter (9.45m is the maximum)
  sensor.setDetectionRange( 0, 1 );

  // Lower the sensitivity so that it's easier to test
  sensor.setSensitivity( 2 );

  // This will cause the LED to turn on 1 second after presence is detected and
  // it will stay on for 5 seconds after the sensor no longer detects presence.
  // Set both of these to 0 for instant on/off, although you may get short-cycling.
  sensor.setOutputLatency( 1, 5 );

  // Setup the built-in LED
  pinMode( LED_BUILTIN, OUTPUT );
}

void loop()
{
  /**
   * NOTE: if you use any `delay()` here, the
   * more of them plus the longer they are,
   * the more likely the presence events will
   * be missed.
   */

  // Query the presence detection status
  bool presence = sensor.checkPresence();

  // If presence == true, turn on the built-in LED.
  digitalWrite( LED_BUILTIN, presence );

  // Your serial monitor will show constant 1's or 0's depending
  Serial.println( presence );
}

```

The Terminal said that the Serial1 was not declared. I've tried to change it but the error message still same.

---

<div class="post-metadata">

**Author:** ![blh64](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/blh64/32/605986_2.png) [@blh64](https://forum.arduino.cc/u/blh64)\
**Post date:** [June 5, 2024, 2:06pm UTC](https://forum.arduino.cc/t/dfrobot-sen0395-mmwave-no-output/1267681/7 "2024-06-05T14:06:43Z")

</div>

Serial1 is only available of hardware that has more than 1 hardware serial port. An Uno only has 1 - `Serial`. If you get a Mega 2560, it has 4, `Serial`, `Serial1`, `Serial2`, and `Serial3`.

which brings up back to the original help - use a different board.

---

<div class="post-metadata">

**Author:** ![kmin](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kmin/32/1147370_2.png) [@kmin](https://forum.arduino.cc/u/kmin)\
**Post date:** [June 5, 2024, 2:30pm UTC](https://forum.arduino.cc/t/dfrobot-sen0395-mmwave-no-output/1267681/8 "2024-06-05T14:30:47Z")

</div>

> [@ridwananhar](#):
>
> The Terminal said that the Serial1 was not declared. I've tried to change it but the error message still same.

That library has softwareserial example, try that...

> **[DFR\_Radar/examples/Basic-SoftwareSerial at master · MaffooClock/DFR\_Radar](https://github.com/MaffooClock/DFR_Radar/tree/master/examples/Basic-SoftwareSerial)**
>
> master/examples/Basic-SoftwareSerial

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [December 2, 2024, 2:31pm UTC](https://forum.arduino.cc/t/dfrobot-sen0395-mmwave-no-output/1267681/9 "2024-12-02T14:31:11Z")

</div>

Closed on December 2, 2024, 2:31pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
