What Is IoT?

The Internet of Things (IoT) is the network of things (physical devices, vehicles, home appliances, and other items embedded with electronics, software, sensors, actuators)  connected through internet which enables these things to exchange data. This creates opportunities for more direct integration of the physical world into computer-based systems, resulting in efficiency improvements, economic benefits, and reduced human exertions.

We are going to see IoT in everything. As per Gartner By 2020, IoT technology will be in 95% of electronics for new product designs.With the technology evolution surrounding the IoT, it will become increasingly possible to add IoT features to a product at minimal cost. As IoT is going be a major player in market and most of people and enterprise are also worried about security challenges of the internet of things. There are multiple threats and challenges of iot and how to face the iot challenges and solutions are identified.While security challenges in iot need to be sorted,due to challenges in determining security risks and exposure for IoT, current budgets for security spend is minimal.Most organizations already face information risks from Internet of Things (IoT) devices. In fact, almost 20% of organizations have detected an IoT-based attack in the past three years.

IoT Risks And Challenges:

We will list down the top iot security challenges in this tutorial.As all know security is one of the major problems with iot and key IoT adoption barriers for the enterprises.


Security and Privacy:

Security is an essential pillar of the Internet and one that to be equally essential and the most significant challenge for the IoT. As Increase the number of connected devices increases the opportunity to exploit security vulnerabilities, as poorly designed IoT devices can expose user data to theft by leaving data streams inadequately protected.A latest research claims that by 2020, 25% of cyber attacks will target IoT devices.

Major security issues in iot have been raised that the IoT is being developed rapidly without appropriate consideration of the profound security challenges involved.Most of the technical security concerns are similar to those of conventional servers, workstations and smartphones. Security is the biggest concern in adopting Internet of things technology. As the Internet of things spreads widely, cyber attacks are likely to become an increasingly physical threat.The vulnerabilities include weak authentication (IoT devices are being used with default credentials), unencrypted messages sent between devices, lack of verification or encryption of software updates.

In a January 2014 article in Forbes, cyber-security columnist Joseph Steinberg listed many Internet-connected appliances that can already “spy on people in their own homes” including televisions, kitchen appliances,[185] cameras etc.Welcome to the era of the Internet of Things (IoT), where digitally connected devices are encroaching on every aspect of our lives, including our homes, offices, cars and even our bodies. To deal with all these unique challenges, there is a need for strict approach to security. A lot of users are ultimately going to compare the cost against the security.

IoT creates unique challenges to privacy, many that go beyond the data privacy issues, consumer devices such as tracking devices for phones and cars as well as smart televisions are capable of tracking your day today activities .The Internet of things’ potential for major privacy invasion is a concern.Consumers take a more active interest in protecting their privacy and demand IoT devices to be screened for potential security vulnerabilities and privacy violations before purchasing them.Consumers are increasingly worried about privacy risks and security concerns that outweigh the value propositions of IoT devices and they opt to postpone their planned purchases or service subscriptions of IoT devices or soutions. As Security and Privacy are major issues in IoT, Enterprises when developing their IoT systems really need to work on IoT security issues and solutions.

Regulations and Standards:

One of the key drivers of the IoT is data. The success of the idea of connecting devices to make them more efficient is dependent upon access to and storage & processing of data. Companies working on the IoT collect data from multiple sources and store it for further processing.Lack of proper Reguation and standards will open up the possibility for for privacy and security dangers. IoT regulation depends on the country. Several standards for the IoT industry are actually being established relating to automobiles because most concerns arising from use of connected cars apply to healthcare devices as well. Lack of standards and documented best practices have a greater impact than just limiting the potential of IoT devices.These are because of still early days for IoT in government and unclear business models, despite strong value proposition.Without the right standards to guide and regulate manufacturers the developers may design products that operate in disruptive ways and If they are configured or designed poorly, these devices may have huge consequences on resources they connect.

Existing and upcoming privacy laws, including the European General Data Protection Regulation (GDPR), will dramatically impact an organization’s strategy, purpose and methods for processing personal data in IoT.

Lack of Interoperability:

Another one of the main internet of things challenges is IoT devices lacking interoperability.With numerous vendors, OEMs, and service providers in IoT business, it has become really difficult to maintain interoperability between different IoT systems.Sensors and connectivity are the integral components of IoT. But not every IoT soutions are equipped with advanced sensors and networking capabilities to effectively communicate and share data between different builds and manafucturers. It will be really challenging to identify a easy solution for this. However from end user perspective this is a really needed capability in a IoT devices.

In short as part of this artice we have seen the iot security problems and iot challenges in the real world.

In the tutorial Wireless Remote Control Lighting System | Smart Lighting Control Systems I have done the control of AC light using Raspberry Pi and Cayenne App. I got a request from my friend to control the Water Pumping motor at a specific interval. Currently they have to switch on and off the motor manually. So we will be working on AC motor and Raspberry pi which will act as automatic watering system. We are not making any plant watering system here.

You could have seen other articles on controlling DC Motors Using Python With a Raspberry Pi, however here we are using the Raspberry Pi to control AC electric power . The connections are almost similar to the light control system, you need to replace the light with motor and we will be using Python script.

Components Needed:

  1. Raspberry Pi
  2. 5V Relay Module
  3. AC Motor/Water Pump
  4. Connecting wires
  5. Power supply for Pi


Automatic Water Pump Using Raspberry Pi:

For making automate motor control with raspberry pi, first connect the VCC of the Relay to GPIO Pin 2 and Relay GND to GPIO 39 which is GND in Pi. Connect the Raspberry Pi GPIO Pin 19 to Relay IN pin which will control the NO and NC connection of Relay . Connect the AC line 120/230V AC from Plug point to COM of Relay and other wire from NO or NC on relay to the Motor. The neutral from pug point will go directly to Motor.

Raspberry Pi Motor Control

Python Script For Raspberry Pi 3 Automatic Watering System:

The raspberry pi ac motor control will run based on interval we define in the script. What we are doing here is to capture the last run time of the motor in to a notepad and check that with current time. If the motor last run was  1 hour before the motor will start pumping the water for 15 min and will stop.

import RPi.GPIO as GPIO
import os
import sys
import datetime
import time
from time import sleep
GPIO.setup(17, GPIO.OUT)
runhour = (time.strftime("%H%M%S"))
add = 4000
file1 = open("/home/pi/Motor_Running_Project.txt","r",encoding = 'utf-8')
f = file1.read(6)
intrunhour = int (f)
while True:

now = int(time.strftime("%H%M%S"))
x = now - intrunhour

       if x>=0:

         print("program started")
         intrunhour = now + add
         nextrun = str (intrunhour)
         file1 = open("/home/pi/Motor_Running_Project.txt","w")

                print("program not started")


The Python program is also attached Motor Control With Raspberry Pi_Project.py.

For DC Motor Control With Raspberry Pi I will update in new tutorial.

What Is Digital Transformation?

Digital business transformation is the process of exploiting digital technologies and supporting capabilities to create a robust new digital business model. Digital Transformation is not necessarily about digital technology, but about the fact that technology, which is digital, allows people to solve their traditional problems. And they prefer this digital solution to the old solution. Digital transformation helps the organization through integration of digital technology into all areas of a business, fundamentally changing how you operate and deliver value to customers. It is also a cultural change.

Gartner predicts that by 2020, more than 30 billion devices will be connected to the Internet. The advent of digital business expands and evolves as the opportunities, threats and constraints of leveraging a business ecosystem. A digital business ecosystem is a marketplace of functions and information. It is a network construct whereby multiple value forms are exchanged for the benefit of all participants.

Digital transformation will look different for every company. Why digital transformation matters? There are a several reasons for a business may undergo digital transformation, but the most likely reason is also that they have to fight for survival and make their business future proof. Technology has driven this shift, and companies that want to succeed must understand how to merge technology with strategy. In this tutorial we will see what are the main top digital transformation trends which in turns gives you the details of  best technology to learn to keep stay ahead in technology.

Source: Pixabay

Digital Transformation Trends 2019:

The future is going to be exiting and unpredictable. Currently most of the big companies are putting lot of efforts and research on new technologies. The Top 5 future technology predictions 2020 are :

Autonomous Things or Intelligent Things:

Most of the organizations are gathering information to build their AI strategies, The use of AI to enhance decision making, reinvent business models and ecosystems and increase the customer experience will payoff for their digital initiatives. Generally AI systems magically perform any intellectual task that a human can do and dynamically learn much as humans do at best. AI consisting of highly scoped machine-learning solutions that target a specific task that can be optimized.

Autonomous things abbreviated AuT, or the Internet of autonomous things abbreviated as IoAT, is an emerging term for the technological developments that are expected to bring computers into the physical environment as autonomous entities without human direction, freely moving and interacting with humans and other objects.Autonomous things such as robots drones and autonomous vehicles uses Artificial intelligence to automate functions previously performed by humans. As an eg: the autonomous car addresses the main existing safety issues and creates new issues. It is expected to be much safer than existing vehicles, by eliminating the single most dangerous element which is the driver. Intelligent things can respond to real world conditions automatically.Intelligent things use AI and machine learning to interact in a more intelligent way with people and surroundings.

Some other examples are Intel’s use of a drone swarm for the opening ceremony of the Winter Olympic Games in 2018 and a plan for Dubai to use autonomous police vehicles that can deploy their own drones for surveillance.

Digital Twins:

According to Gartner, a digital twin refers to the digital representation of a real-world entity or system.DTO (Digital Twins of Organizations) is a dynamic software model that relies on operational or other data to understand how an organization operationalizes its business model, connects with its current state, deploys resources and responds to changes to deliver expected customer value. Digital twin refers to a digital replica of physical assets (physical twin), processes, people, places, systems and devices that can be used for various purposes.

Below are few definitions of digital twins, Refer the WiKi link and Gartner link.

Definitions of digital twins used in existing literature
Definition Authors
“A Digital Twin is an integrated multiphysics, multiscale, probabilistic simulation of an as-built vehicle or system that uses the best available physical models, sensor updates, fleet history, etc., to mirror the life of its corresponding flying twin” Glaessgen & Stargel, (2012)
“Coupled model of the real machine that operates in the cloud platform and simulates the health condition with an integrated knowledge from both data driven analytical algorithms as well as other available physical knowledge” Lee, Lapira, Bagheri, an Kao, (2013)
“digital twin is a real mapping of all components in the product life cycle using physical data, virtual data and interaction data between them” Tao, Sui, Liu, Qi, Zhang, Song, Guo, Lu & Nee, (2018)
“a dynamic virtual representation of a physical object or system across its lifecycle, using real-time data to enable understanding, learning and reasoning” Bolton, McColl-Kennedy, Cheung, Gallen, Orsingher, Witell & Zaki, (2018)
“Using a digital copy of the physical system to perform real-time optimization” Söderberg, R., Wärmefjord, K., Carlson, J. S., & Lindkvist, L. (2017)
“A digital twin is a real time digital replica of a physical device” Bacchiega (2017)


Digital twins integrate artificial intelligence, machine learning and software analytics  to create living digital simulation models that update and change as their physical counterparts change. A digital twin continuously learns and updates itself from multiple sources to represent its near real-time status, working condition or position.


What is blockchain : Blockchain  is  an encrypted, distributed computer filing system , it is a growing list of records, called blocks, which are linked using cryptography. Block chain certainly is real however may not be completely ready in 2018 for adoption in every industry. Blockchain is going to be technology that will make a real impact across industry sectors along with IoT. Blockchain is the invention from brain of a single person or a group of person know by pseudonym, Satoshi Nakamoto. Digital currency , Bitcoin is first majority used purpose however now industry is finding the potential use of it as technology. Blockchain is getting used in Cybersecurity, healthcare, financial sectors etc. for securing health records, control disease, patient data, cryptocurrency wallets.

Blockchain technology holds the promise to change industries, and although mosty we see often around financial opportunities. Blockchain has many potential applications in government, healthcare, content distribution, supply chain and more. However, many blockchain technologies are immature and unproven, and are largely unregulated.

How bitcoin works?

Bitcoin, probably the most well-known example of blockchain, records cryptocurrency transactions in a chain-of-blocks data structure where a block is a group of transaction records added every few minutes in a never-ending series. The ledger records the sequence of each transaction and every “coin” (virtual currency stored as information bits).

Immersive Experience:

Immersion into virtual reality is a perception of being physically present in a non-physical world. The perception is created by surrounding the user of the VR system in images, sound or other stimuli that provide an engrossing total environment.An immersive experience is an illusory environment that completely surrounds you such that you feel that you are inside it and part of it. Augmented reality (AR), virtual reality (VR) and mixed reality are changing the way that people perceive and interact with the digital world.Whether we are playing a video game on our smartphone, video conferencing on our tablet, or watching sports on our Virtual Reality (VR) headset Immersion enhances everyday experiences, making them more realistic, engaging, and satisfying on all our devices.

Over the next years the focus will be on mixed reality, which is emerging as the immersive experience of choice, where the user interacts with digital and real-world objects while maintaining a presence in the physical world.

Augmented Analytics:

Augmented analytics focuses on a specific area of augmented intelligence, using machine learning (ML) to transform how analytics content is developed, consumed and shared. Augmented analytics is the future of data and analytics. As per Gartner Augmented analytics automates the process of data preparation, insight generation and insight visualization, eliminating the need for professional data scientists in many situations.

In this tutorial we will go through on how to turn on or off a AC lamp, or any other AC electrical device with a Raspberry Pi, Cayenne and a relay module.


Everyone wants to have use best home automation systems in their home , which is really expensive at times, Can I build my own home automation system to control your AC devices like lamp, Fan? . Yes we can, In this project we will work on simple way on how to control AC 230V lights. We can do this using Raspberry Pi and Arduino which are the two devices I have spoke in my previous IoT devices article. Controlling AC Light Using Arduino With Relay Module is one way, however we will be using Raspberry pi and Cayenne for building remote control wireless lights in your home.

Components Needed:

  1. Raspberry Pi
  2. 5V Relay Module
  3. AC Bulb
  4. Connecting wires
  5. Power supply for Pi
  6. Smartphone or Tablet for Cayenne.

Refer the article to understand the basics of Relay module and connections.

Controlling AC Light Using Raspberry Pi With Relay Module and Cayenne:

For making automated lighting system for home and controlling AC Devices with Raspberry Pi, first connect the VCC of the Relay to GPIO Pin 2 and Relay GND to GPIO 39 which is GND in Pi. Connect the Raspberry Pi GPIO Pin 19 to Relay IN pin which will control the NO and NC connection of Relay . Connect the AC line 120/230V AC from Plug point to COM of Relay and other wire from NO or NC on relay to the bulb. The neutral from pug point will go directly to bulb.


Connecting a light bulb with a Raspberry Pi

Make sure Cayenne is connected to your Raspberry Pi and create a LED or Toggle switch to control the Relay connection.

Once you login in cayenne , you will be able to see the dashboard page which gives the details of your raspberry pi. The dashboard gives you on the left the connected Raspberry Pi devices, if you have more than one devices connected it show all of them. If the device is online the color will be Red , if not it will be grey. Once you select your Raspberry Pi which is online, on the top right you will see the details of your device.

Now we have to add the device LED and it should be connected to the GPIO PIN 19. Kindly check the link for GPIO pin details.

Click on Add New -> Device/Widgets which will take it to the screen to select the device.

Add Widgets

Select Actuators -> Click on Generic -> Digital Output.

Digital Output Widget

Once you click on Digital Output, we will get the options to configure the widget.

Select the Device --> Raspberry Pi

Connectivity -> Integrated GPIO

Channel -> Channel 17

Choose Widget -> Button

Choose Icon -> LED

And click on Add Actuator

The Widget is added to the home dashboard now & we are done. You can click on the Widget and the AC bulb i will Turn On and you can click again the bulb will Turn OFF. We can control any AC LED Lamp Controlled Through a Relay and Cayenne now through your mobile or smartphone.