You forgot to include the library at the top of your sketch. Solution: Add #include <SoftwareSerial.h> before your setup() function.
The cloud editor automatically includes all core libraries. You do not need to install anything. download softwareserial.h library for arduino
Now that you've installed the SoftwareSerial library, let's take a look at how to use it. Here's a basic example: You forgot to include the library at the top of your sketch
Whether you are building a smart home sensor network, a robot controlled via Bluetooth, or a data logger for GPS coordinates, SoftwareSerial.h is the bridge that allows your Arduino to talk to the world. Now that you know exactly how to manage this library, go ahead and build your next great project. a robot controlled via Bluetooth